﻿using System.Data;
using System.Runtime.Serialization;
using System.ServiceModel;


namespace HRMService
{
    [ServiceContract(Namespace = "http://HRMService")]
    public interface IParameter
    {
        [OperationContract]
        DataSet Parameter_GetAll();
       

        [OperationContract]
        ParameterInfo Parameter_GetByName(string parameterName);

        [OperationContract]
        int Parameter_Insert(ParameterInfo eInfo);

        [OperationContract]
        bool Parameter_Update(ParameterInfo eInfo);

        [OperationContract]
        bool Parameter_Delete(int MaritalID);

    }

    [DataContract(Namespace = "http://HRMService")]
    public class ParameterInfo
    {
        int _id;
        [DataMember]
        public int ID
        {
            get { return _id; }
            set { _id = value; }
        }

        string _Name;
        [DataMember]
        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }

        string _Value;
        [DataMember]
        public string Value
        {
            get { return _Value; }
            set { _Value = value; }
        }
    }
}
